<?php

namespace Cours\UserBundle\Entity;

use FOS\UserBundle\Entity\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="fos_user")
 */
class User extends BaseUser
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\ManyToOne(targetEntity="Cours\QuizzBundle\Entity\Promotion")
     */
    protected $promotion;
    
    public function __construct()
    {
        parent::__construct();
        // your own logic
    }
    
    public function getPromotion() {
        return $this->promotion;
    }
    
    public function setPromotion($promotion) {
        $this->promotion = $promotion;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
}